<?php
include "File.class.php";
include ("Exception.class.php");
try{
    $file = new CoreFile('test.php');
    //var_dump($file->isReadable);
    //var_dump($file->isWritable);
    //var_dump($file->isFileExists);
    //echo $file->fileName . "<br>";
    //echo $file->fileExtension . "<br>";
    //echo $file->fileRealPath . "<br>";
    //echo $file->isDir . "<br>";
    //echo $file->fileSize . "<br>";
    //echo $file->fileType;
    //$file->RenameFile('test.php');
    //echo $file->fileName;
    $data = "wowowowoowowowowo";
    $file->WriteFile($data);
    echo $file->ReadFile($file->fileSize);
} catch(Core_Exception $e) {
    echo $e->__toString();
}
?>
